import javax.xml.soap.Node;
import java.util.LinkedList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        MyLikendList list = new MyLikendList();
        list.addLast(1);
        list.addLast(3);
        list.addLast(5);
        list.addLast(7);
        list.addLast(9);
        list.display();
        System.out.println("==========");
        //MyLikendList list1 = new MyLikendList();
        //list1.head = list.reverse(2);
        MyLikendList.NNode ret = list.reverse(2);
        list.display();
        list.display(ret);
    }
    public static void main1(String[] args) {
        MyLikendList list = new MyLikendList();
        list.addLast(1);
        list.addLast(3);
        list.addLast(5);
        list.addLast(7);
        list.display();
        System.out.println("==========");
        MyLikendList list1 = new MyLikendList();
        list1.addLast(2);
        list1.addLast(4);
        list1.addLast(4);
        list1.display();
        MyLikendList list2 = new MyLikendList();
        list2.head = list2.merge(list,list1);
        list2.display();
    }
}
